/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ELE.EnterpriseLibrary.Data
{
  /// <summary>
  /// Custom exception that indicates an inconsistency in the mapping configuration.
  /// </summary>
  class InvalidObjectQueryMappingException : ApplicationException
  {
    /// <summary>
    /// Default constructor.
    /// </summary>
    public InvalidObjectQueryMappingException() : base() { }
    /// <summary>
    /// Constructor that defines a message text
    /// </summary>
    /// <param name="message"></param>
    public InvalidObjectQueryMappingException(string message) : base(message) { }
    /// <summary>
    /// Constructor with a message text and an inner exception.
    /// </summary>
    /// <param name="message"></param>
    /// <param name="inner"></param>
    public InvalidObjectQueryMappingException(string message, Exception inner) : base(message, inner) { }
    /// <summary>
    /// This constructor is actually used by the system to serialize the stack trace of the exception.
    /// </summary>
    /// <param name="serializationInfo"></param>
    /// <param name="context"></param>
    public InvalidObjectQueryMappingException(
                  System.Runtime.Serialization.SerializationInfo serializationInfo, 
                  System.Runtime.Serialization.StreamingContext context) 
      : base(serializationInfo, context) 
    { }
  }
}
